import service from '@/utils/request'

// @Tags BusNovels
// @Summary 创建BusNovels
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BusNovels true "创建BusNovels"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /busNovels/createBusNovels [post]
export const createBusNovels = (data) => {
  return service({
    url: '/busNovels/createBusNovels',
    method: 'post',
    data
  })
}

// @Tags BusNovels
// @Summary 删除BusNovels
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BusNovels true "删除BusNovels"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /busNovels/deleteBusNovels [delete]
export const deleteBusNovels = (data) => {
  return service({
    url: '/busNovels/deleteBusNovels',
    method: 'delete',
    data
  })
}

// @Tags BusNovels
// @Summary 删除BusNovels
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除BusNovels"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /busNovels/deleteBusNovels [delete]
export const deleteBusNovelsByIds = (data) => {
  return service({
    url: '/busNovels/deleteBusNovelsByIds',
    method: 'delete',
    data
  })
}

// @Tags BusNovels
// @Summary 更新BusNovels
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BusNovels true "更新BusNovels"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /busNovels/updateBusNovels [put]
export const updateBusNovels = (data) => {
  return service({
    url: '/busNovels/updateBusNovels',
    method: 'put',
    data
  })
}

// @Tags BusNovels
// @Summary 用id查询BusNovels
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.BusNovels true "用id查询BusNovels"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /busNovels/findBusNovels [get]
export const findBusNovels = (params) => {
  return service({
    url: '/busNovels/findBusNovels',
    method: 'get',
    params
  })
}

// @Tags BusNovels
// @Summary 分页获取BusNovels列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取BusNovels列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /busNovels/getBusNovelsList [get]
export const getBusNovelsList = (params) => {
  return service({
    url: '/busNovels/getBusNovelsList',
    method: 'get',
    params
  })
}
